package ${configs.packagePath}.service;

import ${configs.packagePath}.pojo.${table.className};
import com.github.pagehelper.Page;

import java.util.List;

/**
 * <Description>
 * 接口
 * @author ${configs.author}
 * @version 1.0
 * @createDate ${date}
 * @see ${configs.packagePath}.service
 */
public interface ${table.className}Service {
    /***
     * 查询所有
     * @return
     */
    List<${table.className}> findAll();

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    ${table.className} findById(Integer id);

    /**
     * 添加
     * @param ${table.lowerName}
     * @return
     */
    boolean add(${table.className} ${table.lowerName});

    /**
     * 修改
     * @param ${table.className}
     * @return
     */
    boolean updateById(${table.className} ${table.lowerName});

    /**
     * 删除
     * @param id
     * @return
     */
    boolean deleteById(Integer id);

    /**
     * 分页和查询
     * @param page
     * @param size
     * @param brand
     * @return
     */
    Page findPage(Integer page, Integer size);
}
